home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1989 …il & Dave's Excellent CD / Excellent CD HFS.raw / Moof / Goodies / MPW Goodies / Interfaces / CIncludes / Retrace.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-30  |  1013 b   |  50 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.  
  3. Created: Tuesday, October 4, 1988 at 8:39 PM
  4.     Retrace.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.  1985-1988
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __RETRACE__
  15. #define __RETRACE__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #ifndef __OSUTILS__
  22. #include <OSUtils.h>
  23. #endif
  24.  
  25. typedef pascal void (*VBLProcPtr)(void);
  26.  
  27. typedef struct {
  28.     QElemPtr qLink;
  29.     short qType;
  30.     VBLProcPtr vblAddr;
  31.     short vblCount;
  32.     short vblPhase;
  33. }VBLTask;
  34.  
  35. #ifdef __safe_link
  36. extern "C" {
  37. #endif
  38. pascal QHdrPtr GetVBLQHdr(void); 
  39. pascal OSErr SlotVInstall(QElemPtr vblBlockPtr,short theSlot); 
  40. pascal OSErr SlotVRemove(QElemPtr vblBlockPtr,short theSlot); 
  41. pascal OSErr AttachVBL(short theSlot); 
  42. pascal OSErr DoVBLTask(short theSlot); 
  43. pascal OSErr VInstall(QElemPtr vblTaskPtr); 
  44. pascal OSErr VRemove(QElemPtr vblTaskPtr); 
  45. #ifdef __safe_link
  46. }
  47. #endif
  48.  
  49. #endif
  50.